package it.basilikos.core.util;

import java.util.Set;

import com.google.common.collect.Sets;

public class Conditions{

	private Set<Condition> conditions = Sets.newHashSet();
	
	private Conditions(){}
	
	public static Conditions create()
	{
		return new Conditions();
	}
	
	public void add(String property,Object value,Condition.ConditionRelation relation)
	{
		conditions.add(new Condition(property,value,relation));
	}
	
	public void addEquals(String property,Object value)
	{
		add(property,value,Condition.ConditionRelation.EQUALS);
	}
	public void addNotEquals(String property,Object value)
	{
		add(property,value,Condition.ConditionRelation.NOT_EQUALS);
	}

	public Set<Condition> getConditions() {
		return conditions;
	}
	
	
}
